package com.design.principle.openclose;

/**
 * @program: designPattern
 * @description:
 * @author: STU756
 * @create: 2021-01-18 23:44
 */
public class JavaDiscountCourse extends JavaCourse {


    public JavaDiscountCourse(Integer id, String name, Double price) {
        super(id, name, price);
    }

    public Double getDisCountPrice(){
        return super.getPrice() * 0.6;
    }
}
